<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>搜索结果页面</title>
</head>
<body>

    <div th:each="obj:${users}" id="show_search">
        <div>
            <span th:text="${obj.nickname}">
            </span>
            <span>
                <a href="javascript:void(0)" th:value="${obj.id}" th:if="${obj.on}" th:text="正在关注"></a>
                <a href="javascript:void(0)" th:value="${obj.id}" th:if="${obj.on == null}" th:text="关注"></a>
            </span>
        </div>
    </div>
    <script
            src="https://code.jquery.com/jquery-3.3.1.js"
            integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
            crossorigin="anonymous"></script>

<script th:src="@{/js/home.js}">

</script>
</body>
</html>